﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BLL;
using MODEL;

namespace Management_System.Controllers
{
    public class ProductTypeController : Controller
    {
       
        //商品分类显示
        // GET: /ProductType/

        public ActionResult Show()
        {
            return View();
        }
        /// <summary>
        /// 首页显示
        /// </summary>
        /// <returns></returns>
        public ActionResult ProductMessage()
        {
            return View();
        }

        /// <summary>
        /// 列表
        /// </summary>
        /// <returns></returns>
        public ActionResult Cart(int id)
        {
            var result = bll.showInfo().Where(p => p.BrandId == id);
            return View(result);
        }
        /// <summary>
        /// 详情
        /// </summary>
        /// <returns></returns>
        public ActionResult detailed(int id)
        {
            var result = bll.showInfo().Where(p => p.GoodsID == id);
            return View(result);
        }
        /// <summary>
        /// 购物
        /// </summary>
        /// <returns></returns>
        public ActionResult Gouwu()
        {
            return View();
        }
    }
}
